"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.狙炮Handler = void 0;
const Config_1 = require("../../Config");
const GameUtils_1 = __importDefault(require("../GameUtils"));
const BaseHandler_1 = require("./BaseHandler");
class 狙炮Handler extends BaseHandler_1.BaseHandler {
    /** 开炮，一段时间后再计算落点上的大子会不会死，有可能空炮 */
    狙炮_aim(data, player) {
        this.handlerMgr.spendAction(player, Config_1.Config.COST_狙炮_AIM);
        let startPoint = this.gameMgr.map_point.get(data.start);
        let big_start = startPoint.big;
        big_start.actionOnce();
        let big_狙炮 = startPoint.big;
        let endPoint = this.gameMgr.map_point.get(data.end);
        big_狙炮.point_aim = endPoint;
        this.gameMgr.sendBroadcast(GameUtils_1.default.getObj("狙炮_aim", { "start": data.start, "end": data.end }));
    }
}
exports.狙炮Handler = 狙炮Handler;
